//预览图片
//传入的list里每一项只能为图片路径
//可以预览单个图片
//仅支持图片列表和单个图片
import judgmentType from '@/utils/judgmentType/index.js'
export const preImg = (urls, index = 0) => {
	// let urls = []
	// if (judgmentType(list) == 'Array') {
	// 	if (list[0].split('/')[0] == 'http:' || list[0].split('/')[0] == 'https:') {
	// 		urls = list
	// 	} else {
	// 		urls = list.map(item => {
	// 			return uni.$u.baseUrl + item
	// 		})
	// 	}
	// } else {
	// 	if (list.split('/')[0] == 'http:' || list.split('/')[0] == 'https:') {
	// 		urls.push(list)
	// 	} else {
	// 		urls.push(uni.$u.baseUrl + list)
	// 	}
	uni.previewImage({
		current: index,
		urls: urls
	})
}
